/*
 * 项目名称:    wms-server-jeecg
 * 创建人员:    hansen
 * 创建时间:    2023-10-05
 */
package org.jeecg.modules.dock.entity.mes.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.jeecg.modules.utils.DockContentUtil;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * MES-WMS发送叠片退料板请求
 *
 * @author hansen
 * @version 1.0.0
 * @date 2023-10-05 09:55:42
 */
@ApiModel(value = "MES-WMS发送叠片退料板请求", description = "MES-WMS发送叠片退料板请求")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class LaminatedRefeedingPlateRequestVO extends MesBaseRequestVO {

    @NotNull
    @NotBlank
    @ApiModelProperty("物料编码")
    private String materialCode;

    @ApiModelProperty("生产订单号")
    private String orderCode;
    @NotNull
    @ApiModelProperty("数量")
    private Integer quantity;

    @ApiModelProperty("明细")
    private List<Object> detail;

    public void setMaterialCode(String materialCode) {
        this.materialCode = DockContentUtil.addZero(materialCode);
    }
}
